<?php
include(dirname(dirname(__FILE__))."/global.php");
$phpyun->is_fun();
	$act = $_GET['act'];
	$task = $_GET['task'];
	if($act=="")	$act="index";
	if($task=="")	$task = "index";
	$usertype=$_COOKIE["usertype"];
	if($usertype==2){
		$act="com";
	}
	if(!is_file(MODEL_PATH.$act.'.class.php'))
	{
		$controller='index';
		$action='index';
	}
	require(MODEL_PATH.'class/common.php');
	require("model/".$act.'.class.php');
	$conclass=$act.'_controller';
	$actfunc=$task.'_action';
	$views=new $conclass($phpyun,$db,$db_config[def],"member");
	if(!method_exists($views,$actfunc)){
		$views->DoException();
	}
	$views->$actfunc();
?>